package com.seek.servicebase.exceptionhandler;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * author wml
 * Created on 2022/1/10 18:33
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SeekException extends RuntimeException {

    private Integer code; // 状态码

    private String msg; // 异常信息

    @Override
    public String toString() {
        return "SeekException{" +
                "message=" + this.getMessage() +
                ", msg=" + msg +
                ", code=" + code +
                '}';
    }
}
